package com.cardgame;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;

public class Main extends Activity {
	
	 private Button SingleButton;
	 private Button MultiButton;
	 
	 
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        SingleButton = (Button) findViewById(R.id.SingleButton);
        MultiButton = (Button) findViewById(R.id.MultiButton);
        
        SingleButton.setOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                launchSingleGame();
            }
        });
        
    }
    
    /**
     * Launches the single player game activity, where the user then selects the number of players
     */
    protected void launchSingleGame() {
    	Intent i = new Intent();
        i.setClassName("com.cardgame", "com.cardgame.Game");
        i.putExtra("com.cardgame.playerNumber", 6);
        startActivity(i);
    }
}